package com.ly.blog2Common.core.exception;


import com.ly.blog2Common.core.http.ErrConfigInit;

/**
 * 自定义异常
 * create by lyMaster on 2019/4/6 - 17:01
 **/
public class BlogException extends RuntimeException {

    private int errCode;

    public int getErrCode() {
        return errCode;
    }

    public BlogException(int errCode){
        super(ErrConfigInit.getErrMsg(errCode));
        this.errCode = errCode;
    }

}
